package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevControllerLog;
import cn.sciento.farm.devicemanager.dao.model.PageConditionQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @author Walton
 * @since 2020/10/15 17:34
 */
public interface ControllerLogService {
    int insert(DevControllerLog controllerLog);

    /**
     * 获取设备控制日志
     * @param data PageConditionQuery
     * @return IPage
     */
    IPage<DevControllerLog> getControllerLog(PageConditionQuery data);

    /**
     * 批量删除日志
     * @param startTime 开始时间
     * @return 0,1
     */
    int batchDeleteLogByStartTime(long startTime);
}
